public class test1 {
    private static test1 test=new test1();
    private  test1(){
        System.out.println("test1初始化");

    }
    public static  test1 getInstance(){
        System.out.println("getINstance");
        return  test;
    }
    public static void main(String[] args){
        test1 t1=test1.getInstance();
        test1 t2=test1.getInstance();
        System.out.println(t1==t2);
    }
}
